package com.heima.search.service;

import java.util.Set;

public interface RedisService {
    /**
     * 异步保存搜索记录
     * @param userId
     * @param equipmentId
     * @param searchWords
     */
    void saveSearchWord(Integer userId, String equipmentId, String searchWords);


    /**
     * 查询搜索记录
     * @param userId
     * @param equipmentId
     * @return
     */
    Set<String> getSearchWord(Integer userId, String equipmentId);

    /**
     * 删除搜索记录
     * @param userId
     * @param equipmentId
     * @param searchWord
     */
    void delSearchWord(Integer userId, String equipmentId,String searchWord);
}
